.class public Llt/noframe/gpsfarmguide/views/FragmentMap;
.super Landroidx/fragment/app/Fragment;
.source "FragmentMap.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentTouchListener;
.implements Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentOnBackPressed;
.implements Llt/noframe/gpsfarmguide/purchases/RemoveAdsListener;


# instance fields
.field private activityResultHandler:Landroid/os/Handler;

.field private admobView:Lcom/google/android/gms/ads/AdView;

.field private bluetooth_connected:Landroid/widget/ImageButton;

.field cancelDeviceDetection:Ljava/lang/Runnable;

.field centerPosClick:Landroid/view/View$OnClickListener;

.field private clickCount:I

.field private customAdView:Landroid/widget/ImageButton;

.field private data:Llt/noframe/gpsfarmguide/Data;

.field private discoveryHandler:Landroid/os/Handler;

.field private discoveryWatcher:Landroid/os/Handler;

.field private fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

.field mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

.field private mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

.field protected mOnActivityResult:Z

.field protected mOnActivityResultIntent:Landroid/content/Intent;

.field protected mRequestCode:I

.field protected mResultCode:I

.field private mapScrolling:Llt/noframe/gpsfarmguide/MapScrolling;

.field private markerMoving:Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;

.field menu:Landroid/view/Menu;

.field private final myBluetoothReceiver:Landroid/content/BroadcastReceiver;

.field private runtimePermissions:Llt/noframe/gpsfarmguide/utils/RuntimePermissions;

.field sheduleDeviceDetection:Ljava/lang/Runnable;

.field public sprayStarted:Z

.field private startTime:J

.field zoomOutFieldsClick:Landroid/view/View$OnClickListener;


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 151
    invoke-direct {p0}, Landroidx/fragment/app/Fragment;-><init>()V

    const/4 v0, 0x0

    .line 100
    iput v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->clickCount:I

    const-wide/16 v1, 0x0

    .line 101
    iput-wide v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->startTime:J

    .line 120
    iput-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mOnActivityResult:Z

    .line 121
    iput v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mRequestCode:I

    .line 122
    iput v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mResultCode:I

    .line 126
    iput-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->sprayStarted:Z

    .line 750
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMap$4;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$4;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->myBluetoothReceiver:Landroid/content/BroadcastReceiver;

    .line 776
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMap$5;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$5;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->cancelDeviceDetection:Ljava/lang/Runnable;

    .line 786
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMap$6;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$6;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->sheduleDeviceDetection:Ljava/lang/Runnable;

    .line 852
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMap$8;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$8;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->zoomOutFieldsClick:Landroid/view/View$OnClickListener;

    .line 860
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMap$9;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$9;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->centerPosClick:Landroid/view/View$OnClickListener;

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/views/FragmentMap;)Llt/noframe/gpsfarmguide/Data;
    .locals 0

    .line 91
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    return-object p0
.end method

.method static synthetic access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;
    .locals 0

    .line 91
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->admobView:Lcom/google/android/gms/ads/AdView;

    return-object p0
.end method

.method static synthetic access$200(Llt/noframe/gpsfarmguide/views/FragmentMap;)Llt/noframe/gpsfarmguide/map/CustomGoogleMap;
    .locals 0

    .line 91
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    return-object p0
.end method

.method static synthetic access$202(Llt/noframe/gpsfarmguide/views/FragmentMap;Llt/noframe/gpsfarmguide/map/CustomGoogleMap;)Llt/noframe/gpsfarmguide/map/CustomGoogleMap;
    .locals 0

    .line 91
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    return-object p1
.end method

.method static synthetic access$300(Llt/noframe/gpsfarmguide/views/FragmentMap;)V
    .locals 0

    .line 91
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->setUpMap()V

    return-void
.end method

.method static synthetic access$400(Llt/noframe/gpsfarmguide/views/FragmentMap;)V
    .locals 0

    .line 91
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->showMeasure()V

    return-void
.end method

.method static synthetic access$500(Llt/noframe/gpsfarmguide/views/FragmentMap;)Landroid/os/Handler;
    .locals 0

    .line 91
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->activityResultHandler:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic access$600(Llt/noframe/gpsfarmguide/views/FragmentMap;)Landroid/os/Handler;
    .locals 0

    .line 91
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->discoveryHandler:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic access$700(Llt/noframe/gpsfarmguide/views/FragmentMap;)Llt/noframe/gpsfarmguide/analytics/FireAnalytics;
    .locals 0

    .line 91
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    return-object p0
.end method

.method static synthetic access$800(Llt/noframe/gpsfarmguide/views/FragmentMap;Lcom/google/android/gms/maps/GoogleMap;Landroid/location/Location;)V
    .locals 0

    .line 91
    invoke-direct {p0, p1, p2}, Llt/noframe/gpsfarmguide/views/FragmentMap;->animateMapToMyLocationWhenFixed(Lcom/google/android/gms/maps/GoogleMap;Landroid/location/Location;)V

    return-void
.end method

.method private animateMapToMyLocationWhenFixed(Lcom/google/android/gms/maps/GoogleMap;Landroid/location/Location;)V
    .locals 6

    if-eqz p2, :cond_0

    .line 522
    new-instance v0, Lcom/google/android/gms/maps/model/CameraPosition$Builder;

    invoke-direct {v0}, Lcom/google/android/gms/maps/model/CameraPosition$Builder;-><init>()V

    new-instance v1, Lcom/google/android/gms/maps/model/LatLng;

    .line 523
    invoke-virtual {p2}, Landroid/location/Location;->getLatitude()D

    move-result-wide v2

    invoke-virtual {p2}, Landroid/location/Location;->getLongitude()D

    move-result-wide v4

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/google/android/gms/maps/model/LatLng;-><init>(DD)V

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/model/CameraPosition$Builder;->target(Lcom/google/android/gms/maps/model/LatLng;)Lcom/google/android/gms/maps/model/CameraPosition$Builder;

    const/high16 p2, 0x41200000    # 10.0f

    .line 524
    invoke-virtual {v0, p2}, Lcom/google/android/gms/maps/model/CameraPosition$Builder;->zoom(F)Lcom/google/android/gms/maps/model/CameraPosition$Builder;

    const/4 p2, 0x0

    .line 525
    invoke-virtual {v0, p2}, Lcom/google/android/gms/maps/model/CameraPosition$Builder;->bearing(F)Lcom/google/android/gms/maps/model/CameraPosition$Builder;

    .line 526
    invoke-virtual {v0, p2}, Lcom/google/android/gms/maps/model/CameraPosition$Builder;->tilt(F)Lcom/google/android/gms/maps/model/CameraPosition$Builder;

    .line 527
    invoke-virtual {v0}, Lcom/google/android/gms/maps/model/CameraPosition$Builder;->build()Lcom/google/android/gms/maps/model/CameraPosition;

    move-result-object p2

    .line 529
    invoke-static {p2}, Lcom/google/android/gms/maps/CameraUpdateFactory;->newCameraPosition(Lcom/google/android/gms/maps/model/CameraPosition;)Lcom/google/android/gms/maps/CameraUpdate;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/google/android/gms/maps/GoogleMap;->animateCamera(Lcom/google/android/gms/maps/CameraUpdate;)V

    :cond_0
    return-void
.end method

.method private doubleTapToZoom(II)V
    .locals 7

    .line 623
    iget v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->clickCount:I

    const/4 v1, 0x1

    add-int/2addr v0, v1

    iput v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->clickCount:I

    .line 624
    iget v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->clickCount:I

    if-ne v0, v1, :cond_0

    .line 625
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p1

    iput-wide p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->startTime:J

    goto :goto_0

    :cond_0
    const/4 v2, 0x2

    if-ne v0, v2, :cond_3

    .line 627
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    iget-wide v5, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->startTime:J

    sub-long/2addr v3, v5

    const-wide/16 v5, 0x12c

    cmp-long v0, v3, v5

    if-gtz v0, :cond_2

    .line 629
    new-instance v0, Landroid/graphics/Point;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    invoke-static {v1}, Llt/noframe/gpsfarmguide/utils/ScreenHelper;->getStatusBarHeight(Landroid/content/Context;)I

    move-result v1

    sub-int/2addr p2, v1

    invoke-direct {v0, p1, p2}, Landroid/graphics/Point;-><init>(II)V

    .line 630
    new-instance p1, Llt/noframe/gpsfarmguide/clicks_chain/AreaSelectHandler;

    invoke-direct {p1}, Llt/noframe/gpsfarmguide/clicks_chain/AreaSelectHandler;-><init>()V

    .line 631
    new-instance p2, Llt/noframe/gpsfarmguide/clicks_chain/DistanceSelectHandler;

    invoke-direct {p2}, Llt/noframe/gpsfarmguide/clicks_chain/DistanceSelectHandler;-><init>()V

    .line 632
    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/clicks_chain/ClickHandler;->setNextHandler(Llt/noframe/gpsfarmguide/clicks_chain/ClickHandler;)V

    .line 634
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->getGoogleMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p2

    invoke-virtual {p2}, Lcom/google/android/gms/maps/GoogleMap;->getProjection()Lcom/google/android/gms/maps/Projection;

    move-result-object p2

    invoke-virtual {p2, v0}, Lcom/google/android/gms/maps/Projection;->fromScreenLocation(Landroid/graphics/Point;)Lcom/google/android/gms/maps/model/LatLng;

    move-result-object p2

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/clicks_chain/AreaSelectHandler;->handleRequest(Lcom/google/android/gms/maps/model/LatLng;)Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 636
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    invoke-static {p2}, Llt/noframe/gpsfarmguide/LocationTracking;->setMapNotFollowing(Landroid/content/Context;)V

    .line 637
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/AbstractMeasuringModel;->getPoints()Ljava/util/List;

    move-result-object p1

    invoke-static {p1, v2}, Llt/noframe/gpsfarmguide/utils/Camera;->showMeasure(Ljava/util/List;I)V

    :cond_1
    const/4 p1, 0x0

    .line 639
    iput p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->clickCount:I

    goto :goto_0

    .line 641
    :cond_2
    iput v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->clickCount:I

    .line 642
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p1

    iput-wide p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->startTime:J

    :cond_3
    :goto_0
    return-void
.end method

.method public static newInstance()Llt/noframe/gpsfarmguide/views/FragmentMap;
    .locals 1

    .line 129
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;-><init>()V

    return-object v0
.end method

.method public static newInstance(II)Llt/noframe/gpsfarmguide/views/FragmentMap;
    .locals 3

    .line 133
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;-><init>()V

    .line 134
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string v2, "type"

    .line 135
    invoke-virtual {v1, v2, p0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string p0, "id"

    .line 136
    invoke-virtual {v1, p0, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 137
    invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V

    return-object v0
.end method

.method public static newInstance(III)Llt/noframe/gpsfarmguide/views/FragmentMap;
    .locals 3

    .line 142
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;-><init>()V

    .line 143
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string v2, "type"

    .line 144
    invoke-virtual {v1, v2, p0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string p0, "id"

    .line 145
    invoke-virtual {v1, p0, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string p0, "track_id"

    .line 146
    invoke-virtual {v1, p0, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 147
    invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V

    return-object v0
.end method

.method private setMapLayer(IZ)V
    .locals 12

    .line 440
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 442
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->menu:Landroid/view/Menu;

    const v1, 0x7f09023c

    invoke-interface {v0, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 443
    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->menu:Landroid/view/Menu;

    const v3, 0x7f09023b

    invoke-interface {v2, v3}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v2

    .line 444
    iget-object v4, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->menu:Landroid/view/Menu;

    const v5, 0x7f09023d

    invoke-interface {v4, v5}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v4

    .line 445
    iget-object v6, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->menu:Landroid/view/Menu;

    const v7, 0x7f09023e

    invoke-interface {v6, v7}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v6

    const v8, 0x7f0800eb

    .line 447
    invoke-interface {v0, v8}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    const v8, 0x7f0800e9

    .line 448
    invoke-interface {v2, v8}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    const v8, 0x7f0800ed

    .line 449
    invoke-interface {v4, v8}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    const v8, 0x7f0800ef

    .line 450
    invoke-interface {v6, v8}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    const/4 v8, 0x4

    const/4 v9, 0x3

    const/4 v10, 0x2

    const/4 v11, 0x1

    if-eqz p2, :cond_5

    if-eq p1, v11, :cond_4

    if-eq p1, v10, :cond_3

    if-eq p1, v9, :cond_2

    if-eq p1, v8, :cond_1

    goto :goto_0

    :cond_1
    const p1, 0x7f09023b

    goto :goto_0

    :cond_2
    const p1, 0x7f09023e

    goto :goto_0

    :cond_3
    const p1, 0x7f09023d

    goto :goto_0

    :cond_4
    const p1, 0x7f09023c

    :cond_5
    :goto_0
    packed-switch p1, :pswitch_data_0

    goto/16 :goto_1

    .line 498
    :pswitch_0
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p2

    invoke-virtual {p2}, Lcom/google/android/gms/maps/GoogleMap;->getMapType()I

    move-result p2

    if-eq p2, p1, :cond_6

    .line 499
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p1

    invoke-virtual {p1, v9}, Lcom/google/android/gms/maps/GoogleMap;->setMapType(I)V

    .line 500
    :cond_6
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-static {p1, v9}, Llt/noframe/gpsfarmguide/utils/LastPickPrefrences;->setGoogleMapType(Landroid/content/Context;I)V

    const p1, 0x7f0800ee

    .line 501
    invoke-interface {v6, p1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 502
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    const-string p2, "terrain"

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendMapLayerChange(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 490
    :pswitch_1
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p2

    invoke-virtual {p2}, Lcom/google/android/gms/maps/GoogleMap;->getMapType()I

    move-result p2

    if-eq p2, p1, :cond_7

    .line 491
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p1

    invoke-virtual {p1, v10}, Lcom/google/android/gms/maps/GoogleMap;->setMapType(I)V

    .line 492
    :cond_7
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-static {p1, v10}, Llt/noframe/gpsfarmguide/utils/LastPickPrefrences;->setGoogleMapType(Landroid/content/Context;I)V

    const p1, 0x7f0800ec

    .line 493
    invoke-interface {v4, p1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 494
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    const-string p2, "satellite"

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendMapLayerChange(Ljava/lang/String;)V

    goto :goto_1

    .line 474
    :pswitch_2
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p2

    invoke-virtual {p2}, Lcom/google/android/gms/maps/GoogleMap;->getMapType()I

    move-result p2

    if-eq p2, p1, :cond_8

    .line 475
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p1

    invoke-virtual {p1, v11}, Lcom/google/android/gms/maps/GoogleMap;->setMapType(I)V

    .line 476
    :cond_8
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-static {p1, v11}, Llt/noframe/gpsfarmguide/utils/LastPickPrefrences;->setGoogleMapType(Landroid/content/Context;I)V

    const p1, 0x7f0800ea

    .line 477
    invoke-interface {v0, p1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 478
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    const-string p2, "normal"

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendMapLayerChange(Ljava/lang/String;)V

    goto :goto_1

    .line 482
    :pswitch_3
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p2

    invoke-virtual {p2}, Lcom/google/android/gms/maps/GoogleMap;->getMapType()I

    move-result p2

    if-eq p2, p1, :cond_9

    .line 483
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p1

    invoke-virtual {p1, v8}, Lcom/google/android/gms/maps/GoogleMap;->setMapType(I)V

    .line 484
    :cond_9
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-static {p1, v8}, Llt/noframe/gpsfarmguide/utils/LastPickPrefrences;->setGoogleMapType(Landroid/content/Context;I)V

    const p1, 0x7f0800e8

    .line 485
    invoke-interface {v2, p1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 486
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    const-string p2, "hybrid"

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendMapLayerChange(Ljava/lang/String;)V

    :goto_1
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x7f09023b
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method private setUpMap()V
    .locals 2

    .line 512
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->getGoogleMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    sget-object v1, Llt/noframe/gpsfarmguide/MapClick;->freeModeClick:Lcom/google/android/gms/maps/GoogleMap$OnMapClickListener;

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/GoogleMap;->setOnMapClickListener(Lcom/google/android/gms/maps/GoogleMap$OnMapClickListener;)V

    .line 513
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->getGoogleMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    invoke-static {v1}, Llt/noframe/gpsfarmguide/utils/LastPickPrefrences;->getGoogleMapType(Landroid/content/Context;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/GoogleMap;->setMapType(I)V

    .line 514
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->getGoogleMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    sget-object v1, Llt/noframe/gpsfarmguide/MapClick;->markerClickListener:Lcom/google/android/gms/maps/GoogleMap$OnMarkerClickListener;

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/GoogleMap;->setOnMarkerClickListener(Lcom/google/android/gms/maps/GoogleMap$OnMarkerClickListener;)V

    .line 515
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->getGoogleMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/android/gms/maps/GoogleMap;->getUiSettings()Lcom/google/android/gms/maps/UiSettings;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/UiSettings;->setMyLocationButtonEnabled(Z)V

    .line 516
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->getGoogleMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/android/gms/maps/GoogleMap;->getUiSettings()Lcom/google/android/gms/maps/UiSettings;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/UiSettings;->setZoomControlsEnabled(Z)V

    .line 517
    invoke-virtual {p0, v1}, Llt/noframe/gpsfarmguide/views/FragmentMap;->requestGPSPermission(Z)V

    return-void
.end method

.method private setUpMapIfNeeded()V
    .locals 3

    .line 361
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMap$3;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$3;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V

    .line 422
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    if-nez v1, :cond_0

    .line 423
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object v1

    const v2, 0x7f090167

    .line 424
    invoke-virtual {v1, v2}, Landroidx/fragment/app/FragmentManager;->findFragmentById(I)Landroidx/fragment/app/Fragment;

    move-result-object v1

    check-cast v1, Lcom/google/android/gms/maps/SupportMapFragment;

    .line 426
    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v2, v1}, Llt/noframe/gpsfarmguide/Data;->setMapFragment(Lcom/google/android/gms/maps/SupportMapFragment;)V

    .line 427
    invoke-virtual {v1, v0}, Lcom/google/android/gms/maps/SupportMapFragment;->getMapAsync(Lcom/google/android/gms/maps/OnMapReadyCallback;)V

    .line 428
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {v0, v1}, Llt/noframe/gpsfarmguide/utils/GoogleServicesUtils;->checkPlayServicesWithDialog(Landroid/app/Activity;I)Z

    :cond_0
    return-void
.end method

.method private showAd()V
    .locals 2

    .line 812
    :try_start_0
    new-instance v0, Lcom/google/android/gms/ads/AdRequest$Builder;

    invoke-direct {v0}, Lcom/google/android/gms/ads/AdRequest$Builder;-><init>()V

    const-string v1, "4CA087A2F2FDDEDCFC6EB58E6D39428F"

    .line 813
    invoke-virtual {v0, v1}, Lcom/google/android/gms/ads/AdRequest$Builder;->addTestDevice(Ljava/lang/String;)Lcom/google/android/gms/ads/AdRequest$Builder;

    const-string v1, "B43D95437FEC393D79A905EB8244FD94"

    .line 814
    invoke-virtual {v0, v1}, Lcom/google/android/gms/ads/AdRequest$Builder;->addTestDevice(Ljava/lang/String;)Lcom/google/android/gms/ads/AdRequest$Builder;

    .line 816
    invoke-virtual {v0}, Lcom/google/android/gms/ads/AdRequest$Builder;->build()Lcom/google/android/gms/ads/AdRequest;

    move-result-object v0

    .line 818
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->admobView:Lcom/google/android/gms/ads/AdView;

    invoke-virtual {v1, v0}, Lcom/google/android/gms/ads/AdView;->loadAd(Lcom/google/android/gms/ads/AdRequest;)V

    .line 819
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->admobView:Lcom/google/android/gms/ads/AdView;

    new-instance v1, Llt/noframe/gpsfarmguide/views/FragmentMap$7;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$7;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V

    invoke-virtual {v0, v1}, Lcom/google/android/gms/ads/AdView;->setAdListener(Lcom/google/android/gms/ads/AdListener;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 844
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    const-string v0, "showAd"

    const-string v1, "ERROR showing AD"

    .line 845
    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :goto_0
    return-void
.end method

.method private showMeasure()V
    .locals 5

    .line 534
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "type"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    .line 535
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "id"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v1

    .line 536
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const/4 v3, 0x1

    if-ne v0, v3, :cond_0

    .line 538
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getDistances()Ljava/util/List;

    move-result-object v2

    goto :goto_0

    :cond_0
    const/4 v4, 0x2

    if-ne v0, v4, :cond_1

    .line 540
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getAreas()Ljava/util/List;

    move-result-object v2

    .line 542
    :cond_1
    :goto_0
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Llt/noframe/gpsfarmguide/models/MeasuringModel;

    .line 543
    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/models/MeasuringModel;->getId()I

    move-result v4

    if-ne v4, v1, :cond_2

    .line 544
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object v0

    new-instance v1, Llt/noframe/gpsfarmguide/states/map_states/MeasureSelectedState;

    invoke-direct {v1, v2}, Llt/noframe/gpsfarmguide/states/map_states/MeasureSelectedState;-><init>(Llt/noframe/gpsfarmguide/models/MeasuringModel;)V

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->setCurrentState(Llt/noframe/gpsfarmguide/states/map_states/MapState;)V

    .line 545
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->loadTrack()V

    .line 546
    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/models/AbstractMeasuringModel;->getPoints()Ljava/util/List;

    move-result-object v0

    invoke-static {v0, v3}, Llt/noframe/gpsfarmguide/utils/Camera;->showMeasure(Ljava/util/List;I)V

    :cond_3
    return-void
.end method


# virtual methods
.method public activityResult(IILandroid/content/Intent;)V
    .locals 5

    .line 663
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Intent info. requestCode: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "; resultCode: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "; intentData: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz p3, :cond_0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "result"

    .line 664
    invoke-virtual {p3, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "fields"

    invoke-virtual {p3, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    :cond_0
    const-string v1, "no data"

    :goto_0
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 663
    invoke-static {v0}, Lcom/crashlytics/android/Crashlytics;->log(Ljava/lang/String;)V

    .line 666
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Static stuff. Availability checks - data: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz v1, :cond_1

    const/4 v1, 0x1

    goto :goto_1

    :cond_1
    const/4 v1, 0x0

    :goto_1
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v1, "; data.getCurrent_measuring(): "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    const-string v4, "false"

    if-eqz v1, :cond_3

    .line 667
    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v1

    if-eqz v1, :cond_2

    const/4 v1, 0x1

    goto :goto_2

    :cond_2
    const/4 v1, 0x0

    :goto_2
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    goto :goto_3

    :cond_3
    move-object v1, v4

    :goto_3
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "; data.getGui(): "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    if-eqz v1, :cond_5

    .line 668
    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object v1

    if-eqz v1, :cond_4

    const/4 v1, 0x1

    goto :goto_4

    :cond_4
    const/4 v1, 0x0

    :goto_4
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    goto :goto_5

    :cond_5
    move-object v1, v4

    :goto_5
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "; data.getMapStatesController(): "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    if-eqz v1, :cond_7

    .line 669
    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object v1

    if-eqz v1, :cond_6

    const/4 v1, 0x1

    goto :goto_6

    :cond_6
    const/4 v1, 0x0

    :goto_6
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    goto :goto_7

    :cond_7
    move-object v1, v4

    :goto_7
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "; data.getAreas(): "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    if-eqz v1, :cond_9

    .line 670
    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getAreas()Ljava/util/List;

    move-result-object v1

    if-eqz v1, :cond_8

    const/4 v1, 0x1

    goto :goto_8

    :cond_8
    const/4 v1, 0x0

    :goto_8
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    goto :goto_9

    :cond_9
    move-object v1, v4

    :goto_9
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "; data.getDistances(): "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    if-eqz v1, :cond_b

    .line 671
    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getDistances()Ljava/util/List;

    move-result-object v1

    if-eqz v1, :cond_a

    const/4 v1, 0x1

    goto :goto_a

    :cond_a
    const/4 v1, 0x0

    :goto_a
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v4

    :cond_b
    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 666
    invoke-static {v0}, Lcom/crashlytics/android/Crashlytics;->log(Ljava/lang/String;)V

    const/4 v0, 0x2

    const/4 v1, -0x1

    if-eq p1, v2, :cond_c

    if-ne p1, v0, :cond_e

    :cond_c
    if-ne p2, v1, :cond_e

    .line 678
    :try_start_0
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p2

    if-eqz p2, :cond_12

    .line 680
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p2

    invoke-virtual {p2, v3}, Llt/noframe/gpsfarmguide/models/MeasuringModel;->setFromGps(Z)V

    .line 681
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p2

    invoke-static {}, Llt/noframe/gpsfarmguide/database/DB;->getDB()Llt/noframe/gpsfarmguide/database/DB;

    move-result-object p3

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v1

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/models/MeasuringModel;->getMeasuringType()I

    move-result v1

    invoke-virtual {p3, v1}, Llt/noframe/gpsfarmguide/database/DB;->getLastInsertedId(I)I

    move-result p3

    invoke-virtual {p2, p3}, Llt/noframe/gpsfarmguide/models/MeasuringModel;->setId(I)V

    if-ne p1, v0, :cond_d

    .line 683
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getAreas()Ljava/util/List;

    move-result-object p1

    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p2

    invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_b

    .line 685
    :cond_d
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getDistances()Ljava/util/List;

    move-result-object p1

    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p2

    invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 687
    :goto_b
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object p1

    invoke-interface {p1, v3}, Llt/noframe/gpsfarmguide/gui/Gui;->clearGui(I)V

    .line 688
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p1

    new-instance p2, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;

    invoke-direct {p2}, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;-><init>()V

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->setCurrentState(Llt/noframe/gpsfarmguide/states/map_states/MapState;)V

    goto/16 :goto_d

    :catch_0
    move-exception p1

    goto/16 :goto_c

    :cond_e
    const/4 v0, 0x3

    if-ne p1, v0, :cond_f

    if-ne p2, v1, :cond_f

    .line 691
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p1

    if-eqz p1, :cond_12

    .line 692
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/AbstractMeasuringModel;->unmarkMeasure()V

    .line 693
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object p1

    invoke-interface {p1, v3}, Llt/noframe/gpsfarmguide/gui/Gui;->clearGui(I)V

    .line 694
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p1

    new-instance p2, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;

    invoke-direct {p2}, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;-><init>()V

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->setCurrentState(Llt/noframe/gpsfarmguide/states/map_states/MapState;)V

    goto :goto_d

    :cond_f
    const/16 v0, 0x16

    const/16 v2, 0x18

    if-ne p1, v0, :cond_11

    if-ne p2, v1, :cond_10

    const-string p1, "result_file_path"

    .line 699
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 700
    new-instance p2, Landroid/content/Intent;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p3

    const-class v0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;

    invoke-direct {p2, p3, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string p3, "import_file_path"

    .line 701
    invoke-virtual {p2, p3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 702
    invoke-virtual {p0, p2, v2}, Landroidx/fragment/app/Fragment;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_d

    .line 704
    :cond_10
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object p1

    invoke-interface {p1, v3}, Llt/noframe/gpsfarmguide/gui/Gui;->clearGui(I)V

    .line 705
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p1

    new-instance p2, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;

    invoke-direct {p2}, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;-><init>()V

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->setCurrentState(Llt/noframe/gpsfarmguide/states/map_states/MapState;)V

    goto :goto_d

    :cond_11
    if-ne p1, v2, :cond_12

    if-ne p2, v1, :cond_12

    .line 709
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->loadMeasures()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_d

    :goto_c
    const-string p2, "FragmentMap"

    const-string p3, "Things got ... You know."

    .line 713
    invoke-static {p2, p3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 714
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    const-string p2, "GUI clearing problems happened..."

    .line 717
    invoke-static {p2}, Lcom/crashlytics/android/Crashlytics;->log(Ljava/lang/String;)V

    .line 718
    invoke-static {p1}, Lcom/crashlytics/android/Crashlytics;->logException(Ljava/lang/Throwable;)V

    .line 719
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object p1

    const p2, 0x7f1100cd

    invoke-virtual {p0, p2}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    :cond_12
    :goto_d
    return-void
.end method

.method public adsRemoved()V
    .locals 2

    .line 806
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->admobView:Lcom/google/android/gms/ads/AdView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    return-void
.end method

.method public checkForAvailableBluetooth()V
    .locals 4

    .line 725
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 730
    :cond_0
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getExternalGPSState()Llt/farmis/libraries/externalgps/providers/Status;

    move-result-object v0

    sget-object v1, Llt/farmis/libraries/externalgps/providers/Status;->INDETERMINE:Llt/farmis/libraries/externalgps/providers/Status;

    if-ne v0, v1, :cond_2

    .line 732
    invoke-static {}, Landroid/bluetooth/BluetoothAdapter;->getDefaultAdapter()Landroid/bluetooth/BluetoothAdapter;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    .line 733
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    if-nez v0, :cond_1

    return-void

    .line 735
    :cond_1
    :try_start_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->myBluetoothReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    .line 738
    :catch_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->myBluetoothReceiver:Landroid/content/BroadcastReceiver;

    new-instance v2, Landroid/content/IntentFilter;

    const-string v3, "android.bluetooth.device.action.FOUND"

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 739
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->discoveryHandler:Landroid/os/Handler;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->cancelDeviceDetection:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 740
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->discoveryHandler:Landroid/os/Handler;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->cancelDeviceDetection:Ljava/lang/Runnable;

    const-wide/16 v2, 0x1b58

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 741
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->startDiscovery()Z

    .line 745
    :cond_2
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->discoveryWatcher:Landroid/os/Handler;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->sheduleDeviceDetection:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 746
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->discoveryWatcher:Landroid/os/Handler;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->sheduleDeviceDetection:Ljava/lang/Runnable;

    const-wide/16 v2, 0x55f0

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method public loadTrack()V
    .locals 10

    .line 552
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "track_id"

    invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    if-eqz v0, :cond_3

    .line 554
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v2

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/Data;->getDisplayTrackInMap()Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 555
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v2

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/Data;->getDisplayTrackInMap()Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;

    move-result-object v2

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->removePolygons()V

    .line 557
    :cond_0
    new-instance v2, Llt/noframe/gpsfarmguide/database/DbTracks;

    invoke-direct {v2}, Llt/noframe/gpsfarmguide/database/DbTracks;-><init>()V

    invoke-virtual {v2, v0}, Llt/noframe/gpsfarmguide/database/DbTracks;->getTrack(I)Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    move-result-object v0

    .line 558
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getTracks()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    const/4 v3, 0x1

    if-le v2, v3, :cond_1

    .line 559
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v2

    new-instance v4, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;

    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v5

    invoke-virtual {v5}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v5

    sget-object v6, Llt/noframe/gpsfarmguide/utils/Preferences;->AREA_SHOWN_AS_POLYLINE:Llt/minvib/magicpreferences/MagicBooleanPreference;

    .line 560
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v7

    invoke-virtual {v6, v7}, Llt/minvib/magicpreferences/MagicBooleanPreference;->get(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object v6

    .line 559
    invoke-virtual {v6}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v6

    invoke-direct {v4, v5, v0, v6}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;-><init>(Llt/noframe/gpsfarmguide/models/MeasuringModel;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;Z)V

    invoke-virtual {v2, v4}, Llt/noframe/gpsfarmguide/Data;->setDisplayTrackInMap(Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;)V

    .line 561
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v2

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/Data;->getDisplayTrackInMap()Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;

    move-result-object v2

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;->displayTracks()V

    .line 564
    :cond_1
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v2

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/Data;->getNaviOptions()Llt/noframe/gpsfarmguide/widgets/bottom_start/BottomStartNavigationBar;

    move-result-object v2

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getImpelement()D

    move-result-wide v4

    invoke-virtual {v2, v3, v4, v5}, Llt/noframe/gpsfarmguide/widgets/bottom_start/BottomStartNavigationBar;->eqipmentWidthLocked(ZD)V

    .line 566
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getNaviLines()Ljava/util/List;

    move-result-object v2

    if-eqz v2, :cond_3

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getNaviLines()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-le v2, v3, :cond_3

    .line 568
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getNaviLines()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    move-object v5, v1

    check-cast v5, Lcom/google/android/gms/maps/model/LatLng;

    .line 569
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getNaviLines()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    move-object v6, v1

    check-cast v6, Lcom/google/android/gms/maps/model/LatLng;

    .line 571
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v1

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getNavigationLines()Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;

    move-result-object v1

    if-eqz v1, :cond_2

    .line 572
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v1

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getNavigationLines()Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;

    move-result-object v1

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;->removeNaviLines()V

    .line 574
    :cond_2
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v1

    new-instance v2, Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getImpelement()D

    move-result-wide v7

    invoke-direct {v2, v4, v7, v8}, Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;-><init>(Landroid/content/Context;D)V

    invoke-virtual {v1, v2}, Llt/noframe/gpsfarmguide/Data;->setNavigationLines(Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;)V

    .line 575
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getNavigationLines()Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;

    move-result-object v4

    .line 576
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/models/AbstractMeasuringModel;->getPoints()Ljava/util/List;

    move-result-object v7

    new-instance v8, Landroid/os/Handler;

    invoke-direct {v8}, Landroid/os/Handler;-><init>()V

    const/4 v9, 0x0

    .line 575
    invoke-virtual/range {v4 .. v9}, Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;->setNavigationAsync(Lcom/google/android/gms/maps/model/LatLng;Lcom/google/android/gms/maps/model/LatLng;Ljava/util/List;Landroid/os/Handler;Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$OnShtrichLineSetListener;)V

    .line 578
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getNaviOptions()Llt/noframe/gpsfarmguide/widgets/bottom_start/BottomStartNavigationBar;

    move-result-object v0

    invoke-virtual {v0, v3}, Llt/noframe/gpsfarmguide/widgets/bottom_start/BottomStartNavigationBar;->setTypeSelector(I)V

    :cond_3
    return-void
.end method

.method public onActivityCreated(Landroid/os/Bundle;)V
    .locals 2

    .line 220
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V

    .line 221
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    .line 222
    new-instance p1, Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-direct {p1, v0}, Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->markerMoving:Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;

    .line 223
    new-instance p1, Llt/noframe/gpsfarmguide/MapScrolling;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-direct {p1, v0}, Llt/noframe/gpsfarmguide/MapScrolling;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mapScrolling:Llt/noframe/gpsfarmguide/MapScrolling;

    .line 224
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f0901df

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/Data;->setMainFrame(Landroid/widget/FrameLayout;)V

    return-void
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    .line 649
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onActivityResult(IILandroid/content/Intent;)V

    .line 651
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    if-eqz v0, :cond_0

    .line 652
    invoke-virtual {p0, p1, p2, p3}, Llt/noframe/gpsfarmguide/views/FragmentMap;->activityResult(IILandroid/content/Intent;)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    .line 654
    iput-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mOnActivityResult:Z

    .line 655
    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mOnActivityResultIntent:Landroid/content/Intent;

    .line 656
    iput p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mRequestCode:I

    .line 657
    iput p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mResultCode:I

    :goto_0
    return-void
.end method

.method public onAttach(Landroid/content/Context;)V
    .locals 0

    .line 796
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onAttach(Landroid/content/Context;)V

    .line 797
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-static {p1}, Llt/noframe/gpsfarmguide/dialogs/TutorialsAskDialog;->show(Landroid/content/Context;)V

    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 282
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 283
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->getCurrentState()Llt/noframe/gpsfarmguide/states/map_states/MapState;

    move-result-object v0

    invoke-interface {v0}, Llt/noframe/gpsfarmguide/states/map_states/MapState;->onBackPressed()V

    goto :goto_0

    .line 285
    :cond_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    :goto_0
    return-void
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 1

    .line 313
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 315
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 316
    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    const/4 v0, 0x2

    if-ne p1, v0, :cond_0

    .line 317
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object p1

    const/4 v0, 0x0

    invoke-interface {p1, v0}, Llt/noframe/gpsfarmguide/gui/Gui;->onOrientationChanged(Z)V

    .line 319
    sget-object p1, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED:Llt/minvib/magicpreferences/MagicBooleanPreference;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Llt/minvib/magicpreferences/MagicBooleanPreference;->get(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-nez p1, :cond_1

    .line 320
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->showAd()V

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    if-ne p1, v0, :cond_1

    .line 323
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object p1

    invoke-interface {p1, v0}, Llt/noframe/gpsfarmguide/gui/Gui;->onOrientationChanged(Z)V

    .line 324
    sget-object p1, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED:Llt/minvib/magicpreferences/MagicBooleanPreference;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Llt/minvib/magicpreferences/MagicBooleanPreference;->get(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-nez p1, :cond_1

    .line 325
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->showAd()V

    :cond_1
    :goto_0
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 165
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onCreate(Landroid/os/Bundle;)V

    .line 166
    new-instance p1, Llt/noframe/gpsfarmguide/utils/RuntimePermissions;

    invoke-direct {p1}, Llt/noframe/gpsfarmguide/utils/RuntimePermissions;-><init>()V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->runtimePermissions:Llt/noframe/gpsfarmguide/utils/RuntimePermissions;

    return-void
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;Landroid/view/MenuInflater;)V
    .locals 8

    const v0, 0x7f0d0001

    .line 291
    invoke-virtual {p2, v0, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 292
    invoke-super {p0, p1, p2}, Landroidx/fragment/app/Fragment;->onCreateOptionsMenu(Landroid/view/Menu;Landroid/view/MenuInflater;)V

    .line 293
    new-instance p2, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    const v0, 0x7f090068

    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v2

    const v0, 0x7f090066

    .line 294
    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v3

    const v0, 0x7f09006a

    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v4

    const v0, 0x7f090069

    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v5

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f090092

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    move-object v6, v0

    check-cast v6, Landroid/widget/ImageButton;

    .line 295
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f09015d

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    move-object v7, v0

    check-cast v7, Landroid/widget/ImageButton;

    move-object v1, p2

    invoke-direct/range {v1 .. v7}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;-><init>(Landroid/view/MenuItem;Landroid/view/MenuItem;Landroid/view/MenuItem;Landroid/view/MenuItem;Landroid/widget/ImageButton;Landroid/widget/ImageButton;)V

    .line 296
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v0, p2}, Llt/noframe/gpsfarmguide/Data;->setState(Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;)V

    .line 298
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    invoke-static {p2}, Llt/noframe/gpsfarmguide/utils/Utils;->checkPlayServices(Landroid/content/Context;)Z

    move-result p2

    if-eqz p2, :cond_1

    .line 299
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p2

    instance-of p2, p2, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    if-eqz p2, :cond_0

    .line 300
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p2

    new-instance v0, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;-><init>()V

    invoke-virtual {p2, v0}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->setCurrentState(Llt/noframe/gpsfarmguide/states/map_states/MapState;)V

    goto :goto_0

    .line 301
    :cond_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    if-eqz p2, :cond_1

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    instance-of p2, p2, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    if-eqz p2, :cond_1

    .line 302
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    invoke-static {p2}, Llt/noframe/gpsfarmguide/App;->setContext(Landroid/content/Context;)V

    .line 303
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p2

    new-instance v0, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;-><init>()V

    invoke-virtual {p2, v0}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->setCurrentState(Llt/noframe/gpsfarmguide/states/map_states/MapState;)V

    .line 307
    :cond_1
    :goto_0
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->menu:Landroid/view/Menu;

    .line 308
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/LastPickPrefrences;->getGoogleMapType(Landroid/content/Context;)I

    move-result p1

    const/4 p2, 0x1

    invoke-direct {p0, p1, p2}, Llt/noframe/gpsfarmguide/views/FragmentMap;->setMapLayer(IZ)V

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 1

    .line 171
    new-instance p3, Landroid/os/Handler;

    invoke-direct {p3}, Landroid/os/Handler;-><init>()V

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->discoveryHandler:Landroid/os/Handler;

    .line 172
    new-instance p3, Landroid/os/Handler;

    invoke-direct {p3}, Landroid/os/Handler;-><init>()V

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->discoveryWatcher:Landroid/os/Handler;

    .line 173
    new-instance p3, Landroid/os/Handler;

    invoke-direct {p3}, Landroid/os/Handler;-><init>()V

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->activityResultHandler:Landroid/os/Handler;

    const/4 p3, 0x0

    .line 174
    invoke-virtual {p2, p3, p3, p3, p3}, Landroid/view/ViewGroup;->setPadding(IIII)V

    const v0, 0x7f0c005d

    .line 176
    invoke-virtual {p1, v0, p2, p3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 177
    new-instance p2, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object p3

    invoke-direct {p2, p3}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    const/4 p2, 0x1

    .line 178
    invoke-virtual {p0, p2}, Landroidx/fragment/app/Fragment;->setHasOptionsMenu(Z)V

    .line 179
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    check-cast p2, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {p2, p0}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setFragmentTouchListener(Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentTouchListener;)V

    .line 180
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    check-cast p2, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {p2, p0}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setOnBackPressed(Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentOnBackPressed;)V

    .line 181
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    check-cast p2, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {p2}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object p2

    const p3, 0x7f1100b8

    invoke-virtual {p0, p3}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object p3

   # invoke-virtual {p2, p3}, Landroidx/appcompat/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V

    const p2, 0x7f0900c4

    .line 182
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/ImageButton;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->customAdView:Landroid/widget/ImageButton;

    const p2, 0x7f090046

    .line 183
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Lcom/google/android/gms/ads/AdView;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->admobView:Lcom/google/android/gms/ads/AdView;

    const p2, 0x7f090092

    .line 184
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/ImageButton;

    .line 185
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->zoomOutFieldsClick:Landroid/view/View$OnClickListener;

    invoke-virtual {p2, p3}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p2, 0x7f09015d

    .line 186
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/ImageButton;

    .line 187
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->centerPosClick:Landroid/view/View$OnClickListener;

    invoke-virtual {p2, p3}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p2, 0x7f090071

    .line 189
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/ImageButton;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->bluetooth_connected:Landroid/widget/ImageButton;

    .line 190
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->bluetooth_connected:Landroid/widget/ImageButton;

    const/16 p3, 0x8

    invoke-virtual {p2, p3}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 192
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getPermissionsCallbacker()Llt/noframe/gpsfarmguide/PermissionsCallbacker;

    move-result-object p2

    new-instance p3, Llt/noframe/gpsfarmguide/views/FragmentMap$1;

    invoke-direct {p3, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$1;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V

    invoke-virtual {p2, p3}, Llt/noframe/gpsfarmguide/PermissionsCallbacker;->setOnRequestedPermission(Llt/noframe/gpsfarmguide/PermissionsCallbacker$OnRequestedPermission;)V

    .line 200
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    new-instance p3, Llt/noframe/gpsfarmguide/views/FragmentMap$2;

    invoke-direct {p3, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$2;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V

    invoke-virtual {p2, p3}, Llt/noframe/gpsfarmguide/Data;->setOnGuiChangeListener(Llt/noframe/gpsfarmguide/Data$OnGuiChangeListener;)V

    return-object p1
.end method

.method public onDestroy()V
    .locals 1

    .line 262
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroy()V

    .line 263
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->getMainLocationSource()Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;->deactivate()V

    return-void
.end method

.method public onDestroyView()V
    .locals 2

    .line 268
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroyView()V

    .line 269
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setFragmentTouchListener(Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentTouchListener;)V

    .line 270
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setOnBackPressed(Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentOnBackPressed;)V

    .line 273
    :try_start_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getTool()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    .line 274
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getToolbar()Landroidx/appcompat/widget/Toolbar;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 275
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/Data;->sprayFunction:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    if-eqz v0, :cond_1

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/Data;->sprayFunction:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/sprayer/SprayController;->endSpray()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_1
    return-void
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 2

    .line 332
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const/4 v1, 0x1

    packed-switch v0, :pswitch_data_0

    .line 351
    :pswitch_0
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Llt/noframe/gpsfarmguide/views/FragmentMap;->setMapLayer(IZ)V

    .line 352
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result p1

    return p1

    .line 342
    :pswitch_1
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendMapSaveBtnClick()V

    .line 343
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->getCurrentState()Llt/noframe/gpsfarmguide/states/map_states/MapState;

    move-result-object p1

    invoke-interface {p1}, Llt/noframe/gpsfarmguide/states/map_states/MapState;->button3()V

    return v1

    .line 347
    :pswitch_2
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendMapLayerBtnClick()V

    return v1

    .line 334
    :pswitch_3
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendMapCloseBtnClick()V

    .line 335
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->getCurrentState()Llt/noframe/gpsfarmguide/states/map_states/MapState;

    move-result-object p1

    invoke-interface {p1}, Llt/noframe/gpsfarmguide/states/map_states/MapState;->button1()V

    return v1

    .line 338
    :pswitch_4
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendMapFieldCreateBtnClick()V

    .line 339
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->getCurrentState()Llt/noframe/gpsfarmguide/states/map_states/MapState;

    move-result-object p1

    invoke-interface {p1}, Llt/noframe/gpsfarmguide/states/map_states/MapState;->button2()V

    return v1

    :pswitch_data_0
    .packed-switch 0x7f090066
        :pswitch_4
        :pswitch_0
        :pswitch_3
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method

.method public onPause()V
    .locals 2

    .line 244
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onPause()V

    .line 245
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->getMainLocationSource()Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;->deactivate()V

    .line 248
    :try_start_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->myBluetoothReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 250
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z

    .line 251
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->discoveryWatcher:Landroid/os/Handler;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->sheduleDeviceDetection:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 252
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->discoveryHandler:Landroid/os/Handler;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->cancelDeviceDetection:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public onRequestPermissionsResult(I[Ljava/lang/String;[I)V
    .locals 1

    .line 156
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V

    .line 157
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getPermissionsCallbacker()Llt/noframe/gpsfarmguide/PermissionsCallbacker;

    move-result-object v0

    invoke-virtual {v0, p1, p2, p3}, Llt/noframe/gpsfarmguide/PermissionsCallbacker;->onPermissionResult(I[Ljava/lang/String;[I)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 160
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->runtimePermissions:Llt/noframe/gpsfarmguide/utils/RuntimePermissions;

    invoke-virtual {v0, p1, p2, p3}, Llt/noframe/gpsfarmguide/utils/RuntimePermissions;->requestPermissionResponse(I[Ljava/lang/String;[I)V

    return-void
.end method

.method public onResume()V
    .locals 2

    .line 229
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onResume()V

    .line 231
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->setUpMapIfNeeded()V

    .line 233
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/LastPickPrefrences;->getExternalGps(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 234
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->checkForAvailableBluetooth()V

    .line 236
    :cond_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const-string v1, "map_opened"

    invoke-static {v1, v0}, Llt/noframe/gpsfarmguide/App;->stateChanged(Ljava/lang/String;Landroid/content/Context;)V

    .line 237
    sget-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED:Llt/minvib/magicpreferences/MagicBooleanPreference;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/minvib/magicpreferences/MagicBooleanPreference;->get(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_1

    .line 238
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->showAd()V

    :cond_1
    return-void
.end method

.method public onTouch(Landroid/view/MotionEvent;)Z
    .locals 3

    .line 587
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mMap:Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    if-nez v0, :cond_0

    const/4 p1, 0x0

    return p1

    .line 589
    :cond_0
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_6

    if-eq v0, v1, :cond_2

    const/4 v2, 0x2

    if-eq v0, v2, :cond_1

    goto :goto_0

    .line 596
    :cond_1
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->markerMoving:Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;->move(Landroid/view/MotionEvent;)V

    .line 597
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mapScrolling:Llt/noframe/gpsfarmguide/MapScrolling;

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/MapScrolling;->move(Landroid/view/MotionEvent;)V

    goto :goto_0

    .line 601
    :cond_2
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->markerMoving:Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;->up(Landroid/view/MotionEvent;)V

    .line 603
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getDistances()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-gtz v0, :cond_3

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getAreas()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_5

    :cond_3
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    .line 604
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->getCurrentState()Llt/noframe/gpsfarmguide/states/map_states/MapState;

    move-result-object v0

    instance-of v0, v0, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;

    if-nez v0, :cond_4

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->data:Llt/noframe/gpsfarmguide/Data;

    .line 605
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->getCurrentState()Llt/noframe/gpsfarmguide/states/map_states/MapState;

    move-result-object v0

    instance-of v0, v0, Llt/noframe/gpsfarmguide/states/map_states/MeasureSelectedState;

    if-eqz v0, :cond_5

    .line 606
    :cond_4
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    float-to-int v2, v2

    invoke-direct {p0, v0, v2}, Llt/noframe/gpsfarmguide/views/FragmentMap;->doubleTapToZoom(II)V

    .line 607
    :cond_5
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mapScrolling:Llt/noframe/gpsfarmguide/MapScrolling;

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/MapScrolling;->up(Landroid/view/MotionEvent;)V

    goto :goto_0

    .line 591
    :cond_6
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->markerMoving:Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/utils/MarkerMovingFacade;->down(Landroid/view/MotionEvent;)V

    .line 592
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->mapScrolling:Llt/noframe/gpsfarmguide/MapScrolling;

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/MapScrolling;->down(Landroid/view/MotionEvent;)V

    :goto_0
    return v1
.end method

.method public requestGPSPermission(Z)V
    .locals 3

    .line 882
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap;->runtimePermissions:Llt/noframe/gpsfarmguide/utils/RuntimePermissions;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    new-instance v2, Llt/noframe/gpsfarmguide/views/FragmentMap$10;

    invoke-direct {v2, p0, p1}, Llt/noframe/gpsfarmguide/views/FragmentMap$10;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap;Z)V

    invoke-virtual {v0, v1, v2}, Llt/noframe/gpsfarmguide/utils/RuntimePermissions;->requestGPS(Landroid/app/Activity;Llt/noframe/gpsfarmguide/utils/RuntimePermissions$OnPermissionListener;)V

    return-void
.end method
